package nl.boelen.game.handler;

import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;

/**
 * @author Marcel
 */
public abstract class WindowHandler implements WindowListener {

    public WindowHandler() {
    }

    @Override
    public void windowActivated(WindowEvent event) {
    }

    @Override
    public void windowClosed(WindowEvent event) {
    }

    @Override
    public void windowClosing(WindowEvent event) {
        windowClosed();
    }

    @Override
    public void windowDeactivated(WindowEvent event) {
    }

    @Override
    public void windowDeiconified(WindowEvent event) {
    }

    @Override
    public void windowIconified(WindowEvent event) {
    }

    @Override
    public void windowOpened(WindowEvent event) {
    }

    public abstract void windowClosed();
}
